<!-- Build by Eming -->
<%@ page contentType="text/html;charset=utf-8" language="java"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> 
<html:html>
	<head>		
		<title>CG</title>
		<META http-equiv=Content-Type content="text/html; charset=utf-8"><LINK
		href="./styles/index.css" type=text/css rel=stylesheet>
		<style type="text/css"></style>
		<html:base/>
		<script language="javascript">
			var restrictpcinoffice = "no";

			function window_onload() {
				var a=document.getElementsByTagName("input");
				a[0].focus();
			}
</script>
	</head>
	<body bgcolor="D4EFFC" onLoad="window_onload()">
		<html:form action="/login" onsubmit="return  submitUserLogin()">
			<table id="Table_01" width="800" height="680" border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td rowspan="5">
						<img src="image/index_01.png" width="91" height="680" alt=""></td>
					<td colspan="3">
						<img src="image/index_02.png" width="666" height="80" alt=""></td>
					<td rowspan="5">
						<img src="image/index_03.png" width="198" height="680" alt=""></td>
				</tr>
				<tr>
					<td rowspan="3">			<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="454" height="554">
			          <param name="movie" value="image/index_04.swf">
			          <param name="quality" value="high">
			          <embed src="image/index_04.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="454" height="554"></embed>
				    </object></td>
					<td colspan="2">
						<img src="image/index_05.png" width="212" height="290" alt=""></td>
				</tr>
				<tr>
					<td>
						<table width="138" height="67" border="0" cellpadding="0" cellspacing="0" background="image/index_06.png">
			              <tr>
			                <td width="43" valign="top"></td>
			                <td width="95" valign="middle">
			                  <html:text property="regname" size="10" maxlength="10" style="font-family: Tahoma; font-size: 11px" onkeydown="	if (event.keyCode==13 | event.which==13) {var a=document.getElementsByTagName('input');a[1].focus();}" /></td>
			              </tr>
			              
			              <tr>
			                <td valign="top">　</td>
			                <td valign="top"><html:password property="password" size="10" maxlength="10" style="font-family: Tahoma; font-size: 11px" onkeydown="if (event.keyCode==13 | event.which==13) {window.document.loginForm.submit();}"/></td>
			              </tr>
			            </table></td>
					<td>			<html:img onclick="submitUserLogin()" src="image/index_07.png" width="74" height="67" border="0" style="cursor:HAND"/></td>
				</tr>
				<tr>
					<td colspan="2">
						<img src="image/index_08.png" width="212" height="197" alt=""></td>
				</tr>
				<tr>
					<td colspan="3">
						<img src="image/index_09.png" width="666" height="46" alt=""></td>
				</tr>
				<tr bgcolor="D4EFFC">
				  <td colspan="5"><p>　</p>
			      <p>　</p>
			      <p>　</p>
			      <p>　</p>
			      <p>　</p>
			      <p>　</p>
			      <p>　</p></td>
			    </tr>
			</table>
		</html:form>
	</body>
</html:html>
	<script language="javaScript">

	function isEmpty(theField)
	{
		if(theField.value=="")
			return true;
		else
		return false;
	}
	function submitUserLogin()
	{
		var emptyField=0;
	 	if(isEmpty(window.document.loginForm.regname)==true)
 		{
     		alert("请输入用户名！");
     		window.document.loginForm.regname.focus();
     		return false;
 		}
		if(isEmpty(window.document.loginForm.password)==true)
 		{
     		alert("请输入密码！");
     		window.document.loginForm.password.focus();
     		return false;
		}
     	window.document.loginForm.submit();
	 }
	 function changerole()
	 {
		if(window.document.loginForm.RoleNo.value=="0")
		{
			alert("请选择角色！");
			window.document.loginForm.RoleNo.focus();
			return false;
		}
	 	window.document.loginForm.action="./userLogin/changeRole.jsp";
	 	window.document.loginForm.submit();
	 }
	 
function name_presskey() {
	if (window.event.keyCode==13 | event.which==13) {
		window.event.keyCode = 9 ;
		event.which =9;
	}
}

function pwd_presskey() {
	if (window.event.keyCode==13 | event.which==13) {
		window.document.loginForm.submit();
	}
}
	</script>
	<SCRIPT language="javascript" src="./js/ciphering.js"></SCRIPT>

